<!-- cash 页面内容 -->
<section class="cash" ng-controller="cashCtrl">
    <ol class="breadcrumb">
        <li ng-click="goBack();"><a>我的钱包</a></li>
        <li><a>提现</a></li>
    </ol>
                
    <div class="row margin-reset">
        <div class="panel panel-default yf-shadow">
            <!--<div class="panel-title">
                <div class="row text-center" style="margin: 20px 0px;">
                    <div class='col-sm-6 col-xs-6'>
                        <button class='btn' ng-class="{'btn-mt-ok': current_type == 'alipay'}" ng-click="selectPayType('alipay');">支付宝</button>
                    </div>
                    <div class='col-sm-6 col-xs-6'>
                        <button class='btn' ng-class="{'btn-mt-ok': current_type == 'bank'}" ng-click="selectPayType('bank');">银行卡</button>
                    </div>
                </div>
            </div>-->
            <!--<div class="panel-body" ng-show="current_type == 'alipay'">
                <form name='rechargeform' role="form">
                    <div class="form-group">
                        <label for="name">真实姓名</label>
                        <input type="text" class="form-control" name='name' id="name" ng-model='payData.name' placeholder="请输入您的真实姓名" required>
                    </div>
                    <div class="form-group error-container" ng-show="issublimt && (rechargeform.name.$error.pattern || rechargeform.name.$error.required)">
                        请输入真实姓名
                    </div>

                    <div class="form-group">
                        <label for="account">支付宝帐号</label>
                        <input type="text" class="form-control" id="account" ng-model='payData.account' name='account' ng-pattern="/^1[0-9]{10}|([a-zA-Z0-9_-])+@([a-z0-9_-])+(.[a-z0-9_-])+/ " placeholder="请输入支付宝帐号" required>
                    </div>
                    <div class="form-group error-container" ng-show="issublimt && (rechargeform.account.$error.pattern || rechargeform.account.$error.required)">
                        请输入有效的支付宝帐号
                    </div>

                    <div class="form-group">
                        <label for="amount">提现金额</label>
                        <span class="glyphicon pull-right yang">元</span>
                        <input type="number" class="form-control" id="amount" name='amount' input-format ng-model='payData.amount' placeholder="请输入提现金额" required>
                    </div>
                    <div class="form-group error-container" ng-show="issublimt && (rechargeform.amount.$error.pattern || rechargeform.amount.$error.required)">
                        请输入有效的提现金额
                    </div>

                    <div class="form-group">
                        <label for="money">提现方式</label>
                        <div class="col-sm-12 btn-group">-->
                            <!-- <button type="type" class="btn btn-default col-sm-6" ng-click="setpaytype('wx')">
                              <img class="btn-img" src="components/mine/money/imgs/weixin.png" alt="">微信提现
                            </button> -->
                            <!--<button type="type" class="btn btn-default col-sm-12" ng-click="setpaytype('alipay_wap')">
                                <img class="btn-img" src="components/mine/money/imgs/zhifubao.png" alt=""> 支付宝提现
                            </button>

                        </div>
                    </div>
                    <button type="submit" class="btn btn-mt-ok" ng-disabled="rechargeform.$invalid" ng-click="cashMoney(rechargeform.$invalid, payData);">立即提现</button>
                </form>
            </div>-->
            <div class="panel-body" ng-show="current_type == 'bank'">
                <form name='bankform' role="form">
                    <div class="form-group" ng-show="!!!payData.id">
                        <div>
                            您还没有绑定银行卡，<span class="c1 cursor" ui-sref="mine.list({ ctrl: 'zoom,uploadCtrl,personal', params: 3 })">现在去绑定</span>
                        </div>
                    </div>
                    <div class="form-group" ng-show="!!payData.id">
                        <label for="amount">提现金额</label>
                        <span class="glyphicon pull-right yang">元</span>
                        <input type="number" class="form-control" id="amount" name='amount' input-format ng-model='payData.amount' placeholder="请输入提现金额" required>
                    </div>
                    <div class="form-group error-container" ng-show="issublimt && (bankform.amount.$error.pattern || bankform.amount.$error.required)">
                        请输入有效的提现金额
                    </div>

                    <div class="form-group" ng-show="!!payData.id">
                        <label for="money" class=''>提现到</label>
                        <div class="col-sm-12 btn-group text-center">
                            <!-- <button type="type" class="btn btn-default col-sm-6" ng-click="setpaytype('wx')">
                              <img class="btn-img" src="components/mine/money/imgs/weixin.png" alt="">微信提现
                            </button> -->
                            <!-- <button type="type" class="btn btn-default col-sm-12" ng-click="setpaytype('alipay_wap')">
                                <img class="btn-img" src="components/mine/money/imgs/zhifubao.png" alt=""> 支付宝提现
                            </button> -->
                            <div class='col-sm-offset-2 col-sm-8' style="border: 1px solid #ccc;border-radius: 5px;">
                                <h4 style="color: #333;">{{ payData.channel_title }}</h4>
                                <p style="color: #333;">{{ payData.account }}</p>
                            </div>
                        </div>
                    </div>
                    <button type="submit" class="btn btn-mt-ok" ng-show="!!payData.id" ng-disabled="bankform.$invalid" ng-click="cashMoney(bankform.$invalid, payData);">立即提现</button>
                </form>
            </div>
        </div>
</section>
